package com.zzh.zzhaiagent.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzh.zzhaiagent.domain.entity.ChatMessage;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zzh
 * @since 2025-05-07
 */
public interface IChatMessageService extends IService<ChatMessage> {
    // 根据会话ID和最后N条消息，查询最新N条消息
    List<ChatMessage> findChatMessageLatestN(String conversationId, int lastN);

    // 根据会话ID删除消息
    void deleteChatMessageByConversationId(String conversationId);
}
